<!--内部验收-待建-->
<template>
  <t-collapse title="项目验收信息">
    <TForm ref="enteringForm" :form="formData" :form-options="formOptions" :rules="rules" />
    <accButton :prj-id="prjId" :btn-list="btnOptions" v-if="!getxianchaiShow"/>
  </t-collapse>
</template>
<script>
import TForm from '../form/index.vue'
import accButton from '@/views/acceptance/components/accButton.vue'
import { Mixins } from '@/views/acceptance/components/minix'
export default {
  components: {
    accButton,
    TForm
  },
  mixins: [Mixins],
  data() {
    return {
      btnList_: ['serviceShow', 'costSheet', 'threeOrders', 'panorama'],
      formList: ['realStartTime', 'realEndTime', 'endInternalAcceptDate', 'jiaofuApplicationDate', 'endInstallDate', 'endInstallDate2', 'resourceInTime', 'resourceConfirmTime', 'maintainDate']
    }
  },
  computed: {
    getxianchaiShow(){
      return this.newPrjDetail.isNewBusiness === '0'&&this.newPrjDetail.businessMajor==='04'&&this.newPrjDetail.buildModes==='27'
    },
    isReplace() {
      return this.newPrjDetail.buildModes === '07'
    },
    // 单站智联项目
    getShowOne() {
      return this.newPrjDetail.manageMode === '01' && this.newPrjDetail.isNewBusiness === '1'
    },
    // 服务成本 设备录入
    getShowTwo() {
      return this.newPrjDetail.buildModes === '26' && this.newPrjDetail.prjType === 'W'
    },
    btnList() {
      // 代建类项目服务成本类不显示乙供物资明细配置
      const showThrees = this.isReplace ? ['costSheet', 'threeOrders', 'panorama'] : ['panorama']
      // 智联 有交维
      if (this.getShowOne && this.newPrjDetail.isMaintain === '1' && (this.isReplace || this.getShowTwo)) {
        return showThrees
      } else {
        return ['costSheet', 'threeOrders', 'panorama']
      }
    }
  }
}
</script>
<style scoped lang='scss'></style>
